/*    */ package com.qmsk.business.manage.user.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class RegisterDAO extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfAll(Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 13 */     return getGsonOfParams("selectSqlOfAll", "selectCountSqlOfAll", "selectJsonOfAll", 
/* 14 */       nPageIdx, nPageSize);
/*    */   }
/*    */ 
/*    */   public Integer selectGetByPass(String hardId) throws SQLException {
/* 18 */     Object[] params = { hardId };
/* 19 */     return queryForInt("selectGetByPass", params, Integer.valueOf(-1));
/*    */   }
/*    */ 
/*    */   public Integer insertExistsOfHardId(String hardId, String computerName, String memo) throws SQLException {
/* 23 */     Object[] params = { hardId, Integer.valueOf(0), computerName, memo };
/* 24 */     return Integer.valueOf(update("insertSql", params));
/*    */   }
/*    */ 
/*    */   public int check(String[] ids) throws SQLException {
/* 28 */     return check(ids, Integer.valueOf(1));
/*    */   }
/*    */ 
/*    */   public int unCheck(String[] ids) throws SQLException {
/* 32 */     return check(ids, Integer.valueOf(0));
/*    */   }
/*    */ 
/*    */   public int check(String[] ids, Integer nPassed) throws SQLException {
/* 36 */     Map params = new HashMap();
/* 37 */     params.put("pass", nPassed);
/* 38 */     params.put("ids", ids);
/* 39 */     return update("updatePassed", params);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.manage.user.dao.RegisterDAO
 * JD-Core Version:    0.5.3
 */